from simple_game_DataInit import *
from simple_game_Rate import*

#magic1 = Magic("QiTDdeDaDieZhengJC", "Fire", 100, 100, 1, 100)
#magic2 = Magic("WenJJ", "Freeze", 100, 50, 0.5, 100)

#soldier1 = Soldier("QiTD", "wunengkuangnu", 10, 50, 2, 100)
#soldier2 = Soldier("ChenYX", "FangYu", 500, 10, 1, 100)

magics = []
soldiers = []


print("游戏开始")
print("请选择你需要的法师数量")
times = input()
while(times>0):
    print("写出你的法师类型")
    
while(True):
    print("法师的回合")
    for i in magics:
        print("现在操作法师： %s" % i.name)
        op_num_magic = input("选择%s执行的操作" %i.name)
        i.op_magic(int(op_num_magic), soldier1)

    print("战士的回合")
    for i in soldiers:
        print("现在操作战士： %s" % i.name)
        op_num_soldier = input("选择%s执行的操作" %i.name)
        i.op_soldier(int(op_num_soldier), magic1)    

    soldier1.info()
    soldier2.info()

